package com.xiaolin.pojo;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import java.security.Principal;
import java.util.Date;

/**
 * 用户
 *
 * @author XiaoLin
 * @date 2019/2/22 17:49
 */
@Data
@ToString
public class User implements Principal {
    @Id
    private String uid;             //用户ID uuid
    private String phone;           //手机号
    private String email;           //邮箱地址
    private Date birthday;          //出生日期
    private String myinfo;          //个性签名
    private Integer state;          //状态（0 可用 1封号）
    private String uimage;          //头像地址
    private String username;        //用户名
    private String nickName;        //昵称
    private String password;        //用户密码
    private String sex;             //性别
    private String address;         //地址
    private Date regisetrDate;      //注册时间

    @Override
    public String getName() {
        return this.uid;
    }
}

